﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="monitor_2_DBwork" namespace ="monitor_2_DBwork" >
  <class name="IzmersStatistics" table="IzmersStatistics" >
    <id name ="Id" column ="Id" type ="int" generator="identity"/>
    <!--<property name="Name" column="Ipaddress" type="string(15)" unique-key="un1" not-null="true"/>-->
    <property name="Iddevice" column="Iddevice" type="int" unique-key="un1" not-null="true"/>
    <property name="Etalon" column="Etalon" type="string(15)"/>
    <property name="CurrentValue" column="CurrentValue" type="string(15)"/>
    <property name="Date" column="Date" type="DateTime" unique-key="un1"/>
    
    <many-to-one name="Device" class="Devices" lazy="false" column="Iddevice"
                 cascade="save-update" insert="false" update="false" not-null="true"/>
    
  </class>
</hibernate-mapping>